/**
 * DeleteTakenProjectForm class.
 */
package pits.form;

import java.util.ArrayList;
import java.util.List;

public class DeleteTakenProjectForm {

	private String empID;
	private List<String> projectIDs;

	public DeleteTakenProjectForm(int empID, String projectIDList) {

		setEmpID("" + empID);

		List<String> result = new ArrayList<String>();
		String[] tmp = projectIDList.split(":");
		for (int i = 0; i < tmp.length; i++) {
			result.add(tmp[i]);
		}
		setProjectIDs(result);
	}

	/**
	 * @return the empID
	 */
	public String getEmpID() {
		return empID;
	}

	/**
	 * @param empID
	 *            the empID to set
	 */
	public void setEmpID(String empID) {
		this.empID = empID;
	}

	/**
	 * @return the projectIDs
	 */
	public List<String> getProjectIDs() {
		return projectIDs;
	}

	/**
	 * @param projectIDs
	 *            the projectIDs to set
	 */
	public void setProjectIDs(List<String> projectIDs) {
		this.projectIDs = projectIDs;
	}
}
